from django.conf.urls import patterns, include, url
from base.views import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
     url(r'^static/.*$','django.views.static.serve',{'document_root':settings.STATICFILES_DIRS},name='static'),
     url(r"^add_task/?$",add_queue,name='add_task'),
     url(r'^admin/', include(admin.site.urls)),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url('^$', index),
     url('^login$', loginView),
     url('^regHandle$', regHandle),
     url('^msg$', showMsg),
     url('^logout$', logout),
     url('^loginHandle$', dologin,name='loginHandle'),
     url('^center',centerView),
     url('^help',helpView,name='helpView'),
     url('^display',displayView),
     url('^list',tasklistView),
     url('^doadd',doAdd,name='addTask'),
     url('^del',del_task,name='delTask'),
     url('^edit',editView,name='editTask'),
     url('^update',update,name='updateTask'),
)